package com.jcl.recruit.attach.logic;

import com.jcl.recruit.attach.dao.UploadFileDao;
import com.jcl.recruit.attach.model.UploadFileInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName UploadFileLogic

 * @Author yyliu
 * @Date 2018/10/24 13:41
 * @Version 1.0
 **/
@Component
public class UploadFileLogic {

    @Autowired
    private UploadFileDao uploadFileDao;

    public List<UploadFileInfo> findList(String corpCode, Integer ownerId, String type) {
        return uploadFileDao.findList(corpCode, ownerId, type);
    }

    public UploadFileInfo findOne(String id) {
        return uploadFileDao.findOne(id);
    }

    public int add(UploadFileInfo uploadFileInfo) {
        return uploadFileDao.add(uploadFileInfo);
    }

    public int update(UploadFileInfo uploadFileInfo) {
        return uploadFileDao.update(uploadFileInfo);
    }
}
